CentOS 7
Sponsored Link

oVirt 4.1 : Configure Administration Server
2015/07/12
 
Install oVirt which is the management tool for virtualization environment. It's the OSS edition of Red Hat Enterprise Virtualization.
This example is based on the environment below.
                                        +----------------------+
                               10.0.0.30| [ oVirt Management ] |
                                  +-----+    dlp.srv.world     |
+-----------------+               |     |                      |
|                 |10.0.0.100     |     +----------------------+
| Client Computer |---------------+
|                 |               |     +----------------------+
+-----------------+               |     |    [ oVirt Node ]    |
                                  +-----+   node01.srv.world   |
                               10.0.0.51|                      |
                                        +----------------------+

[1] Configure oVirt Administrative Server.
[root@dlp ~]#
yum -y install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
[root@dlp ~]#
yum -y install ovirt-engine
[root@dlp ~]#
touch /etc/exports

[root@dlp ~]#
systemctl start rpcbind nfs-server

[root@dlp ~]#
systemctl enable rpcbind nfs-server

[root@dlp ~]#
engine-setup

[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', 
          '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20150710215442-svdtg0.log
          Version: otopi-1.3.2 (otopi-1.3.2-1.el7.centos)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization

          --== PRODUCT OPTIONS ==--

          # Enter
          Configure Engine on this host (Yes, No) [Yes]:
          # Enter
          Configure Image I/O Proxy on this host? (Yes, No) [Yes]:
          # Enter
          Configure WebSocket Proxy on this host (Yes, No) [Yes]:
          Please note: Data Warehouse is required for the engine. 
          If you choose to not configure it on this host, you have to configure it on a remote host, 
          and then configure the engine on this host so that it can access the database of the remote Data Warehouse host.
          # Enter
          Configure Data Warehouse on this host (Yes, No) [Yes]:
          # Enter
          Configure VM Console Proxy on this host (Yes, No) [Yes]:

          --== PACKAGES ==--

[ INFO  ] Checking for product updates...
[ INFO  ] No product updates found

          --== NETWORK CONFIGURATION ==--
          # confirm own hostname and Enter
          Host fully qualified DNS name of this server [dlp.srv.world]:
          Setup can automatically configure the firewall on this system.
          Note: automatic configuration of the firewall may overwrite current settings.
          # Enter
          Do you want Setup to configure the firewall? (Yes, No) [Yes]:
          
[ INFO  ] firewalld will be configured as firewall manager.

          --== DATABASE CONFIGURATION ==--

          # select local DB or remote DB (selet Local on here)
          Where is the DWH database located? (Local, Remote) [Local]:
          Setup can configure the local postgresql server automatically for the DWH to run. 
          This may conflict with existing applications.
          Would you like Setup to automatically configure postgresql and create DWH database, 
          # select auto or manual for setting DB (select Automatic on here)
          or prefer to perform that manually? (Automatic, Manual) [Automatic]:
          # select local Engine DB or remote Engine DB (selet Local on here)
          Where is the Engine database located? (Local, Remote) [Local]:
          Setup can configure the local postgresql server automatically for the engine to run. 
          This may conflict with existing applications.
          Would you like Setup to automatically configure postgresql and create Engine database, 
          # select auto or manual for setting Engine DB (select Automatic on here)
          or prefer to perform that manually? (Automatic, Manual) [Automatic]:

          --== OVIRT ENGINE CONFIGURATION ==--
          # ser oVirt admin password
          Engine admin password:
          Confirm engine admin password:
          # select apprication mode (select Both)
          Application mode (Virt, Gluster, Both) [Both]:

          --== STORAGE CONFIGURATION ==--
          # select yes or no to wipe default SAN (selet No on here)
          Default SAN wipe after delete (Yes, No) [No]:

          --== PKI CONFIGURATION ==--
          # specify Organization name for certificate
          Organization name for certificate [srv.world]:

          --== APACHE CONFIGURATION ==--

          Setup can configure the default page of the web server to present the application home page. 
          This may conflict with existing applications.
          # select yes or no to set default page of apprication for Web server (selet Yes on here)
          Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]:
          Setup can configure apache to use SSL using a certificate issued from the internal CA.
          # select auto or manual for setting certificate  (selet Automatic on here)
          Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:

          --== SYSTEM CONFIGURATION ==--
          # select yes or no to create NFS share on the local as an ISO Domain (selet Yes on here)
          Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [No]: Yes
          Local ISO domain path [/var/lib/exports/iso]:
          
          Please provide the ACL for the Local ISO domain.
          See the exports(5) manpage for the format.
          Examples:
          - To allow access for host1, host2 and host3, input: host1(rw) host2(rw) host3(rw)
          - To allow access to the entire Internet, input: *(rw)

          For more information, see: http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues
          # set ACL for NFS share
          Local ISO domain ACL: 10.0.0.0/24(rw)
          # ISO domain's name
          Local ISO domain name [ISO_DOMAIN]:

          --== MISC CONFIGURATION ==--
          # selecy [Basic] on here
          Please choose Data Warehouse sampling scale:
          (1) Basic
          (2) Full
          (1, 2)[1]:

          --== END OF CONFIGURATION ==--

[ INFO  ] Stage: Setup validation
[WARNING] Less than 16384MB of memory is available

          --== CONFIGURATION PREVIEW ==--
          Application mode                        : both
          Default SAN wipe after delete           : False
          Firewall manager                        : firewalld
          Update Firewall                         : True
          Host FQDN                               : dlp.srv.world
          Configure local Engine database         : True
          Set application as default page         : True
          Configure Apache SSL                    : True
          Engine database secured connection      : False
          Engine database user name               : engine
          Engine database name                    : engine
          Engine database host                    : localhost
          Engine database port                    : 5432
          Engine database host name validation    : False
          Engine installation                     : True
          NFS setup                               : True
          PKI organization                        : srv.world
          NFS export ACL                          : *(rw)
          NFS mount point                         : /var/lib/exports/iso
          DWH installation                        : True
          DWH database secured connection         : False
          DWH database host                       : localhost
          DWH database user name                  : ovirt_engine_history
          DWH database name                       : ovirt_engine_history
          DWH database port                       : 5432
          DWH database host name validation       : False
          Configure local DWH database            : True
          Configure Image I/O Proxy               : True
          Configure VMConsole Proxy               : True
          Configure WebSocket Proxy               : True
          # Enter key to proceed if it's OK all
          Please confirm installation settings (OK, Cancel) [OK]:
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping dwh service
[ INFO  ] Stopping Image I/O Proxy service
[ INFO  ] Stopping vmconsole-proxy service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration

.....
.....

[root@dlp ~]#
mkdir /var/lib/exports/data

[root@dlp ~]#
chown vdsm:kvm /var/lib/exports/data

[root@dlp ~]#
vi /etc/exports.d/ovirt-engine-iso-domain.exports
# add shared settings for data (replace ACL settings for your environment)

/var/lib/exports/iso    10.0.0.0/24(rw)
/var/lib/exports/data   10.0.0.0/24(rw)

[root@dlp ~]#
systemctl restart rpc-statd nfs-server

 
Tweet